package com.firefly.admin.monitor.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "StMonitorErrorOperationLog", description = "错误操作日志信息表")
public class FyMonitorErrorOperationLog {

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "日志ID")
    private Long logId;

    @ApiModelProperty(value = "功能模块")
    private String operateModule;

    @ApiModelProperty(value = "操作类型")
    private String operateType;

    @ApiModelProperty(value = "操作描述")
    private String operateDesc;

    @ApiModelProperty(value = "请求地址")
    private String requestUrl;

    @ApiModelProperty(value = "请求IP地址")
    private String requestIp;

    @ApiModelProperty(value = "请求方法")
    private String operateMethod;

    @ApiModelProperty(value = "操作人ID")
    private Long operatorId;

    @ApiModelProperty(value = "请求参数")
    private String requestParam;

    @ApiModelProperty(value = "地域地址")
    private String areaAddress;

    @ApiModelProperty(value = "系统名称")
    private String systemName;

    @ApiModelProperty(value = "请求浏览器信息")
    private String browserInfo;

    @ApiModelProperty(value = "操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date operateTime;

    @ApiModelProperty(value = "异常名称")
    private String errorName;

    @ApiModelProperty(value = "异常信息")
    private String errorMessage;
}
